package controller;

import java.net.Socket;

/**
 * This is the controller for every client connection. When a
 * client connects to the server, this thread is invoked for 
 * that particular client and it manages all the client's actions.
 * 
 * @author MUSAB
 *
 */
public class ClientHandler implements Runnable{
	
	/**
	 * The client for which this controller has been started
	 */
	private Socket client;

	/**
	 * Constructor takes the client socket on initialization
	 * 
	 * @param client A client socket to communicate with
	 */
	public ClientHandler(Socket client){
		
		this.client = client;
	}
	
	@Override
	public void run() {
		
		System.out.println("A client connected!");
		
	}

}
